package com.wx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wx.dao.SysMenuMapper;
import com.wx.entity.SysMenu;
import com.wx.entity.SysMenuExample;
import com.wx.service.SysMenuService;
import com.zyht.common.BaseDao;
import com.zyht.common.BaseServiceImpl;

@Service("SysMenuService")
public class SysMenuServiceImpl extends BaseServiceImpl<SysMenu, SysMenuExample> implements SysMenuService {
	@Resource
	private SysMenuMapper sysMenuMapper;

	@Override
	public BaseDao<SysMenu, SysMenuExample> dao(){

		return sysMenuMapper;
	}

	@Override
	public List<SysMenu> getUserMenu(Map<String, Object> params){

		return this.sysMenuMapper.selectUserMenu(params);
	}
	
	@Override
	public List<String> getMenuUrlList(){
	
		return this.sysMenuMapper.selectMenuUrls();
	}

	@Override
	public List<SysMenu> getSubUserMenus(Map<String, Object> params){

		return this.sysMenuMapper.selectSubUserMenus(params);
	}

	@Override
	public List<SysMenu> getMenuList() {
		return sysMenuMapper.selectByExample(new SysMenuExample());
	}
}
